from django.contrib import admin
from .models import *
# Register your models here.
class PersonAdmin(Person):
    list_display = ('photo','name','degree','text',)
class ScienceNewsAdmin(ScienceNews):
    list_display = ('title','content','type','timestamp',)
class GeneralNewsAdmin(GeneralNews):
    list_display = ('title','content','type','timestamp',)
class RecruitNewsAdmin(RecruitNews):
    list_display = ('title','content','type','timestamp',)
class GeneralContentAdmin(GeneralContent):
    list_display = ('title','content','type',)
admin.site.register(PersonAdmin)
admin.site.register(ScienceNewsAdmin)
admin.site.register(GeneralNewsAdmin)
admin.site.register(RecruitNewsAdmin)
admin.site.register(GeneralContentAdmin)
